package xyz.hubery.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import xyz.hubery.dto.UserDTO;

import java.util.List;

@FeignClient(name = "member-service", configuration = OAuthFeignConfig.class, path = "/users")
public interface UserFeign {

    @GetMapping("/basic/info")
    List<UserDTO> getBasicUserInfo(@RequestParam("ids") List<Long> ids);

}
